package com.jc.service.user.impl;

import com.jc.base.page.Page;
import com.jc.base.ResultData;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.jc.dao.user.UserInfoDao;
import com.jc.domain.user.UserInfo;
import com.jc.service.user.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jc.base.Assert;
import com.jc.repository.generator.utils.Condition;
import com.jc.repository.generator.utils.ConditionsExtend;
import com.jc.utils.CollectionUtils;

import java.util.List;

/**
 * @author
 * @create 2016-12-13 09:32:26
 * @description
 */

@Service
public class UserInfoServiceImpl implements UserInfoService {

    private static final Logger LOGGER = LoggerFactory.getLogger(UserInfoServiceImpl.class);

    @Autowired
    private UserInfoDao userInfoDao;

    //this function automatic generated by application
    @Override
    public UserInfo queryUserInfoById(Long id) {
        return userInfoDao.queryUserInfoById(id);
    }

    //this function automatic generated by application
    @Override
    public List<UserInfo> saveOrInsertList(List<UserInfo> userInfos) {
        return userInfoDao.saveOrInsertList(userInfos);
    }

    //this function automatic generated by application
    @Override
    public UserInfo saveOrInsert(UserInfo userInfo) {
        return userInfoDao.saveOrInsert(userInfo);
    }

    //this function automatic generated by application
    @Override
    public boolean deleteUserInfoById(Long id) {
        return userInfoDao.deleteUserInfoById(id);
    }


}